package com.example.mapper;

import com.example.domain.dto.ModAuthorityDto;
import com.example.domain.entity.Authority;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author TXX
* @description 针对表【authority】的数据库操作Mapper
* @createDate 2023-02-05 01:42:24
* @Entity .domain.com.example.domain.entity.Authority
*/
@Repository
public interface AuthorityMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Authority record);

    int insertSelective(Authority record);

    Authority selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Authority record);

    int updateByPrimaryKey(Authority record);

    List selectAll();

    int deleteAuthority(Integer id);

    Authority selectAuthorityNameById(Integer id);

    String exitAuthorityId(String name);

    int updateAuthorityNameById(@Param("id") Integer id,@Param("name") String name);

    int insertAuthority(ModAuthorityDto modAuthorityDto);
}
